local ym__drugsSkill = fk.CreateSkill {
  name = "ym__drugs_trigger",
  tags = {Skill.Compulsory},
}

ym__drugsSkill:addEffect(fk.DamageInflicted, {
  global = true,
  mute = true,
  priority = 0.02,
  can_trigger = function(self, event, target, player, data)
    if target == player and not Fk.skills["drugs_trigger"] then
      return player:getMark("@drugsInflicted") > 0
    end
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local n = player:getMark("@drugsInflicted")
    room:setPlayerMark(player, "@drugsInflicted", 0)
    data:changeDamage(n)
  end,
})

Fk:loadTranslationTable{
  ["@drugsInflicted"] = "散:受伤+",
  ["ym__drugs_trigger"] = "散",
}


return ym__drugsSkill
